import yagmail


def swint(sitoe):
    sit = yagmail.SMTP(user="3392177122@qq.com", password="bvteuinicnxrdacf", host="smtp.qq.com")
    sit.send(to="3392177122@qq.com", subject="邮件系统Web ui自动化测试报告", contents="脚本", attachments=sitoe)


if __name__ == '__main__':
    swint([r'C:\Users\shuohan\Desktop\gaoliu-1\python\monthly_test\tests\log\pytest.log'])
